package com.qf.ssm.mapper;

import com.qf.ssm.entity.promotion.BuildSekill;
import com.qf.ssm.entity.promotion.FormData;
import com.qf.ssm.entity.promotion.SSData;
import com.qf.ssm.entity.promotion.SaleActivity;
import org.apache.ibatis.annotations.Param;

public interface SaleActivityMapper {
    int insertActivitys(@Param("saActivity")SSData saActivity);

    int updateActivityState(@Param("id") Integer id,@Param("state") Integer state);

    int updateActivitys(@Param("id") Integer id,@Param("saName") String saName,@Param("saOrderNumber") Integer saOrderNumber,@Param("saRealPay") Integer saRealPay);

    FormData selectActivity(@Param("id") Integer id);

    int updateSekillActState(@Param("id") Integer id,@Param("state") Integer state);

    int updateSekillActivity(@Param("id") Integer id,@Param("saName") String saName,@Param("saOrderNumber") Integer saOrderNumber,@Param("saRealPay") Integer saRealPay);

    FormData selectSekillActivi(@Param("id") Integer id);

    int insertSekillActivity(@Param("ssId")Integer ssId,@Param("buildSekill")BuildSekill buildSekill);

    int updateGroupState(@Param("saId") Integer saId,@Param("saState") Integer saState);

    int delGroupActivitys(@Param("saId") Integer saId);

    int updateGroupActs(@Param("formData") FormData formData);

    int updateCombineState(@Param("ssId") int ssId,@Param("saState") int saState);

    int updateCombineActivity (@Param("formData") FormData formData);

    FormData selectCombieActivity(@Param("ssId") int ssId);

    int updateAppointActivity(@Param("formData") FormData formData);

    FormData queryAppointActivity(@Param("ssId") int ssId);




    int deleteByPrimaryKey(Integer saId);

    int insert(SaleActivity record);

    int insertSelective(SaleActivity record);

    SaleActivity selectByPrimaryKey(Integer saId);

    int updateByPrimaryKeySelective(SaleActivity record);

    int updateByPrimaryKey(SaleActivity record);
}